← Back

Virtual FS

FileSystem.new [intermediate]

In-memory virtual file system with shell-like commands

Virtual FS Demo

In-memory virtual file system with shell-like commands

For the full interactive experience:

$ mix raxol.playground

Code
fs = FileSystem.new()
{:ok, fs} = FileSystem.mkdir(fs, "/home")
{:ok, fs} = FileSystem.mkdir(fs, "/home/user")
{:ok, fs} = FileSystem.mkdir(fs, "/home/user/docs")
{:ok, fs} = FileSystem.mkdir(fs, "/home/user/projects")

{:ok, fs} =
  FileSystem.create_file(
    fs,
    "/home/user/readme.txt",
    "Welcome to Raxol VFS!\n\nThis is a virtual file system demo.\nAll data lives in memory."
  )
demo j/k prev/next / focus demo esc back 34/42 demos